/*
1.要求有属性：姓名，年龄，职称，基本工资
2.编写业务方法，introduce(),实现输出一个教师的信息
3.编写教师类的3个子类，教授类、副教授类、讲师类。工资级别分别为：教授为1.3，副教授
1.2，讲师1.1。在三个子类里面都重写父类的introduce()方法。
4.定义并初始化一个老师对象，调用业务方法，实现对象基本信息的后台打印
 */
public class Teacher {
    private String name;
    private int age;
    private double salary;
    private String post;
    private double bonus;
    public Teacher(String name, int age, double salary, String post, double bonus) {
        this.name = name;
        this.age = age;
        this.salary = salary;
        this.post = post;
        this.bonus =  bonus;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getName() {
        return name;
    }

    public void setAge(int age) {
        this.age = age;
    }
    public int getAge() {
        return age;
    }
    public void setSalary(double salary) {
        this.salary = salary;
    }
    public double getSalary() {
        return salary;
    }

    public void setPost(String post) {
        this.post = post;
    }
    public String getPost() {
        return post;
    }
    public String introduce() {
        return "name: " + name + ", age: " + age + ", salary: " + salary + ", post: " + post + " bonus: " + bonus;
    }

}